<?php

declare(strict_types=1);

namespace App\CustHub\Dto;

class SyncTaskDto
{
    /**
     * @param int $taskId
     * @param int $type
     * @param string $className
     * @param string $method
     */
    public function __construct(protected int $taskId, protected int $type,protected string $className,protected string $method,protected mixed $currentSeq = 0)
    {

    }

    public function getTaskId(): int
    {
        return $this->taskId;
    }

    public function getType(): int
    {
        return $this->type;
    }

    public function getClassName(): string
    {
        return $this->className;
    }

    public function getMethod(): string
    {
        return $this->method;
    }

    public function getCurrentSeq(): mixed
    {
        return $this->currentSeq;
    }

    public function __toArray() {
        $vars = get_object_vars($this);
        return $vars;
    }
}